package memento.fromKanYun;

/**
 * 用来存储备忘录(持有备忘录实例)：只能存储，不能修改
 */
public class Storage {
    private Memento memento;

    public Storage(Memento memento) {
        this.memento = memento;
    }

    public void setMemento(Memento memento) {
        this.memento = memento;
    }

    public Memento getMemento() {
        return memento;
    }
}
